<!DOCTYPE html>
<html>
	<?
	include 'web/header.phtml';
	?>
	<body>

		<?
		include 'web/body.header.phtml';
		include 'web/body.menu.phtml';
		?>

		<div id="page">

			<?
			include 'web/body.banner.phtml';
			?>
			<?
			include 'view/listCategory.php';
			?>

			<div id="content">
				<div class="box" id="box3">
					<h2 class="title1"></h2>
					<div class="entry">
						<div style="clear: both; margin-bottom: 20px;"></div>
						<p class="links"></p>
						<ul class="list2">
							<?php
							if ($product == NULL) {
								echo "Ko co san pham";
							} else {
								echo '
<div class="Product">
<h2>' . $product[Name] . '</h2>
<div class="image_wrapper image_fl">
<a href=web/images/product/product_' . $product[ImageName] . '><img src="web/images/product/product_' . $product[ImageName] . '" width="360px"/></a>
</div>
 <div style="padding-left: 400px">
                                             <h2>' . $product[Name] . '</h2>
                                             <p>Id: ' . $product[ProductID] . '</p>
                                             <p>Cat:   ' . $product[Category] . '</p>
                                             <p>No:    ' . $product[Quantity] . '<p>
                                             <p>Price: ' . $product[Price] . '$</p>
                                             <p><input type=text style="width:22px;" value="1" id="' . $product[ProductID] . '"/>
                                            <button ' . $stt . ' onclick=addtocart(' . $product[ProductID] . ',' . $product[Quantity] . ')>Buy</button></p>
                                        </div>
</div>';
							}
							?>
						</ul>
					</div>
				</div>
			</div>
		</div>

		<?
		include 'web/body.wrapper.phtml';
		?>
	</body>
</html>

